package com.ruoyi.wechart.dmain;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 微信登录用户实体类
 * @auth zhaoly
 * @date 2024-01-30 0:30
 */
public class WxLoginUser {

    /** 登录token */
    private String token;

    /** 登录用户名(学号或工号或手机号码) */
    private String userName;

    /** 登录密码 **/
    @JsonIgnore
    private String password;

    /** 归属部门 */
    private String deptName;

    /** 用户状态(-1登录失败，0正常，1已注册，未审核，2已注册，审核不通过，3禁用) */
    private Integer status;

    /** 用户状态说明 */
    private String msg;

    /**
     * 构造方法
     * @param status -1登录失败，0正常，1已注册，未审核，2已注册，审核不通过，3禁用
     * @param msg 登录消息
     */
    public WxLoginUser(String userName, String deptName, int status, String msg){
        this.userName = userName;
        this.deptName = deptName;
        this.status = status;
        this.msg = msg;
    }

    /**
     * 构造方法
     * @param userName 登录用户名
     * @param deptName 归属部门名
     * @param token 登录token
     */
    public WxLoginUser(String userName, String deptName, String token){
        this.userName = userName;
        this.deptName = deptName;
        this.token = token;
        this.status = 0;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}